from flask_script import Manager
from flask_migrate import Migrate
from flask_migrate import MigrateCommand
from epp import create_app, db

app = create_app()


# 这个暂时不用
manager = Manager(app=app)
# 将db交给manager
migrate = Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    app.run(use_evalex=False)
